<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="../templates/ui.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="content">

        <h1 class="title ui-widget-header ui-corner-all">Galleria - Options</h1>
        <div class="entry">
            <p>Galleria can be customized with various options such as dimensions, overlays, captions, effects and more.</p>

            <p:galleria value="#{galleriaBean.images}" var="image" effect="slide" effectSpeed="1000"
                        panelWidth="500" panelHeight="250" frameWidth="160" frameHeight="70"
                        filmstripPosition="top" showCaptions="true" showOverlays="true">

                <p:graphicImage value="/images/galleria/#{image}" title="#{image}"/>
                <p:galleriaOverlay title="#{image}">
                    Description for #{image} goes here
                </p:galleriaOverlay>
                
            </p:galleria>

            <h3>Source</h3>
            <p:tabView>
                <p:tab title="galleriaCustom.xhtml">
                    <pre name="code" class="xml">
&lt;p:galleria value="\#{galleriaBean.images}"
            var="image" effect="slide" effectSpeed="1000"
            panelWidth="500" panelHeight="250" frameWidth="160" frameHeight="70"
            filmstripPosition="top" showCaptions="true" showOverlays="true"&gt;

    &lt;p:graphicImage value="/images/galleria/\#{image}" title="\#{image}"/&gt;
    &lt;p:galleriaOverlay title="\#{image}"&gt;
        Description for \#{image} goes here
    &lt;/p:galleriaOverlay&gt;

&lt;/p:galleria&gt;
                    </pre>
                </p:tab>

                <p:tab title="GalleriaBean.java">
                    <pre name="code" class="java">
package org.primefaces.examples.view;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;

public class GalleriaBean {

    private List&lt;String&gt; images;

    @PostConstruct
    public void init() {
        images = new ArrayList&lt;String&gt;();

        for(int i=1;i&lt;=12;i++) {
            images.add("galleria" + i + ".jpg");
        }
    }

    public List&lt;String&gt; getImages() {
        return images;
    }
}
                    </pre>
                </p:tab>
            </p:tabView>

        </div>
    </ui:define>
</ui:composition>